home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 26
/
026.d81
/
as menu
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
1KB
|
47 lines
5 poke53272,(peek(53272)and240)or4:clr
10 poke53280,4 :poke53281,7:poke54296,0
12 ps(1)=1318+54272:ps(2)=1505+54272:ps(3)=1527+54272:ps(4)=1720+54272
15 print"[147]"chr$(142)spc(8)" "
16 print""chr$(142)spc(8)" all smiles main menu "
17 print""chr$(142)spc(8)" "
20 print" play the game"
23 print" [144][221]"
25 print" [144][221]"
30 print" run game tutorial [144][192][219][192] run maze maker"
33 print" [144][221]"
35 print" [221]"
40 print" quit"
50 print" use joystick in port 2 to select" :poke12288,0
51 print" or press 'q' to quit"
52 gosub1000
60 on ch goto100,200,300,60000
70 goto5
100 print"[147]load"+chr$(34)+"as tut"+chr$(34)+",8"
110 print"run";
120 poke198,2:poke631,13:poke632,13:end
200 print"[147]load"+chr$(34)+"all smiles"+chr$(34)+",8"
210 print"run";
220 poke198,2:poke631,13:poke632,13:end
300 print"[147]load"+chr$(34)+"as maze maker"+chr$(34)+",8"
310 print"run";
320 poke198,2:poke631,13:poke632,13:end
1000 ch=1
2000 gosub3000
2005 gett$:j=peek(56320)
2006 ift$="q"thench=4:j=111
2007 ifj=126thench=2:goto2050
2008 rem ifj=127 then2005
2009 ifj=119thench=3:goto2050
2011 ifj=125thench=4:goto2050
2013 ifj=123thench=1:goto2050
2015 ifj=111thenreturn
2050 on ch goto 2100,2200,2300,2400
2100 gosub3000:forg=ps(2)tops(2)+18:pokeg,1:next:goto2005
2200 gosub3000:forg=ps(1)tops(1)+18:pokeg,1:next:goto2005
2300 gosub3000:forg=ps(3)tops(3)+18:pokeg,1:next:goto2005
2400 gosub3000:forg=ps(4)tops(4)+18:pokeg,1:next:goto2005
3000 fort=1to4:forg=ps(t)tops(t)+18:pokeg,2:nextg:nextt:return
60000 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
60010 ifer<>63thenend
60020 load"hello connect",8